/**
 * Created by oneminute on 7/26/14.
 */

var lz = require("../lib/utils/modules")();

var store = {};
var dup = 0;
var sample = 0;
var step = 10000;
for (var i = 0; i < 3000000; i++) {
    var id = lz.Utils.getRandNickName();
    if (store[id]) {
        lz.Logger.warn("dup: ", id);
        dup++;
    } else {
        sample++;
        store[id] = id;
        if (--step == 0) {
            step = 10000;
            lz.Logger.info("sample: %d, dup: %d", sample, dup);
        }
    }
}

lz.Logger.info("sample: %d, dup: %d", sample, dup);
